﻿@model MultilingualInSpaInMvc.Models.Person
@{
    ViewBag.Title = "Knockout";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<fieldset id="fieldset">
    <legend>@Resources.Common.EnterPerson</legend>
    <p>
        @Resources.Common.FirstName:<input type="text" data-bind="value: FirstName, valueUpdate:'afterkeydown'" /></p>
    <p>
        @Resources.Common.LastName:<input type="text" data-bind="value: LastName, valueUpdate:'afterkeydown'" /></p>
    <p>
        @Resources.UI.FullName: <span data-bind="text: FullName"></span>
    </p>
</fieldset>
<script type="text/javascript">


var json = @Html.Raw(Json.Encode(Model));
personVM = new Person(json);
ko.applyBindings(personVM);

</script>
